import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from './http';

import router from './router'
import store from './store'

Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.prototype.$axios = axios;

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')


// var EventBus = new Vue();

// Object.defineProperties(Vue.prototype, {
//     $bus: {
//         get: function() {
//             return EventBus
//         }
//     }
// })